﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infrastructure.Data.Uow.Log
{
    public class LoggerRepositoryFactory :
          Infrastructure.Crosscutting.Loggers.ILoggerReopsitoryFactory
    {
        /// <summary>
        /// Creates this instance.
        /// </summary>
        /// <returns></returns>
        public Crosscutting.Loggers.ILoggerReopsitory CreateLogger()
        {
            Infrastructure.Data.Uow.UnitOfWorkIQueryable uow =
                new UnitOfWorkContext();
            return new Infrastructure.Data.Uow.Log.LoggerRepository(uow);
        }
    }
}
